﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=utf-8" language="java" isELIgnored="false" %>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>知识库</title>
        <link rel="shortcut icon" href="${pageContext.request.contextPath}/images/dan.ico"></link>
        <link href="${pageContext.request.contextPath}/css/cont.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css.css" />
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/zcms/jquery-1.6.1.min.js"></script>
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css.css" />

        <link href="${pageContext.request.contextPath}/knowledge/divcss5.css" rel="stylesheet" media="screen" type="text/css" />
        <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/knowledge/j.js" ></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#input_nav1").mouseover(function(){
                    $("#table_nav1").css("display","block");
                });
                $("#table_nav1").mouseover(function(){
                    $("#table_nav1").css("display","block");
                });
                $("#input_nav1").mouseout(function(){
                    $("#table_nav1").css("display","none");
                });
                $("#table_nav1").mouseout(function(){
                    $("#table_nav1").css("display","none");
                });



                $("#input_nav2").mouseover(function(){
                    $("#table_nav2").css("display","block");
                });
                $("#table_nav2").mouseover(function(){
                    $("#table_nav2").css("display","block");
                });
                $("#input_nav2").mouseout(function(){
                    $("#table_nav2").css("display","none");
                });
                $("#table_nav2").mouseout(function(){
                    $("#table_nav2").css("display","none");
                });


                $("#input_nav3").mouseover(function(){
                    $("#table_nav3").css("display","block");
                });
                $("#table_nav3").mouseover(function(){
                    $("#table_nav3").css("display","block");
                });
                $("#input_nav3").mouseout(function(){
                    $("#table_nav3").css("display","none");
                });
                $("#table_nav3").mouseout(function(){
                    $("#table_nav3").css("display","none");
                });


                $("#input_nav4").mouseover(function(){
                    $("#table_nav4").css("display","block");
                });
                $("#table_nav4").mouseover(function(){
                    $("#table_nav4").css("display","block");
                });
                $("#input_nav4").mouseout(function(){
                    $("#table_nav4").css("display","none");
                });
                $("#table_nav4").mouseout(function(){
                    $("#table_nav4").css("display","none");
                });


                $("#input_nav5").mouseover(function(){
                    $("#table_nav5").css("display","block");
                });
                $("#table_nav5").mouseover(function(){
                    $("#table_nav5").css("display","block");
                });
                $("#input_nav5").mouseout(function(){
                    $("#table_nav5").css("display","none");
                });
                $("#table_nav5").mouseout(function(){
                    $("#table_nav5").css("display","none");
                });
            });
        </script>
        <script type="text/javascript">
            function nav1(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('input_nav1').value="";
                    $("#table_nav1").css("display","none");
                }
                else
                    document.getElementById('input_nav1').value= document.getElementById(id).innerHTML;
                $("#table_nav1").css("display","none");
               

            };
            function nav2(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('input_nav2').value="";
                    $("#table_nav2").css("display","none");
                }
                else
                    document.getElementById('input_nav2').value= document.getElementById(id).innerHTML;
                $("#table_nav2").css("display","none");

            };
            function nav3(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('input_nav3').value="";
                    $("#table_nav3").css("display","none");
                }
                else
                    document.getElementById('input_nav3').value= document.getElementById(id).innerHTML;
                $("#table_nav3").css("display","none");

            };
            function nav(id){
                if(document.getElementById(font9999).innerHTML=="所有(清空条件)"){
                    document.getElementById('text').value="";
                    $(".suckertree_ul").css("display","none");
                }
                else
                    document.getElementById('text').value= document.getElementById(id).innerHTML;
                $(".suckertree_ul").css("display","none");

            };
            function nav5(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('input_nav5').value="";
                    $("#cplb_big").css("display","none");
                }
                else
                    document.getElementById('input_nav5').value= document.getElementById(id).innerHTML;
                $("#cplb_big").css("display","none");

            };
            
            
          
            
            
            
        </script>




        <!--国家js开始-->
        <script type="text/javascript">
            var menuids=["suckertree"]

            function buildsubmenus(){
                for (var i=0; i<menuids.length; i++){
                    var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
                    for (var t=0; t<ultags.length; t++){
                        ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
                        ultags[t].parentNode.onmouseover=function(){
                            this.getElementsByTagName("ul")[0].style.display="block"
                        }
                        ultags[t].parentNode.onmouseout=function(){
                            this.getElementsByTagName("ul")[0].style.display="none"
                        }
                    }
                }
            }

            if (window.addEventListener)
                window.addEventListener("load", buildsubmenus, false)
            else if (window.attachEvent)
                window.attachEvent("onload", buildsubmenus)
        </script>
        <script type="text/javascript">
            function nav(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('text').innerHTML="";
                    document.getElementById('knowledge.country').value=-1;
                    document.getElementById('knowledge.countryName').value="";
                    $(".suckertree_ul").css("display","none");
                }
                else{
                    document.getElementById('text').innerHTML= document.getElementById(id).innerHTML;
                    document.getElementById('knowledge.country').value=id.substring(1);
                    document.getElementById('knowledge.countryName').value=document.getElementById(id).innerHTML;
                    $(".suckertree_ul").css("display","none");
                }

            };
        </script>
        <!--国家js结束-->


        <script type="text/javascript">
            $(document).ready(function(){
                $("#cplb_tab1").mouseover(function(){
                    $("#cplb_tab1").css("background","#D3E0F3");
                    $("#cplb_tab1").css("border-right","0");
                    $("#cplb_tab1").css("border-left","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-top","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-bottom","2px solid #F3BE18");
                    $("#cplb_nav1").css("display","block");
                    $("#cplb_nav2").css("display","none");
                    $("#cplb_nav3").css("display","none");
                    $("#cplb_tab2").css("background","#EAF1F7");
                    $("#cplb_tab2").css("border-top","0");
                    $("#cplb_tab2").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("background","#EAF1F7");
                    $("#cplb_tab3").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("border-top","0");
                });

                $("#cplb_tab2").mouseover(function(){
                    $("#cplb_tab2").css("background","#D3E0F3");
                    $("#cplb_tab2").css("border-right","0");
                    $("#cplb_tab2").css("border-left","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-top","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-bottom","2px solid #F3BE18");
                    $("#cplb_nav2").css("display","block");
                    $("#cplb_nav1").css("display","none");
                    $("#cplb_nav3").css("display","none");
                    $("#cplb_tab1").css("background","#EAF1F7");
                    $("#cplb_tab1").css("border-top","0");
                    $("#cplb_tab1").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("background","#EAF1F7");
                    $("#cplb_tab3").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab3").css("border-top","0");
                });

                $("#cplb_tab3").mouseover(function(){
                    $("#cplb_tab3").css("background","#D3E0F3");
                    $("#cplb_tab3").css("border-right","0");
                    $("#cplb_tab3").css("border-left","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-top","2px solid #F3BE18");
                    $("#cplb_tab3").css("border-bottom","2px solid #F3BE18");
                    $("#cplb_nav3").css("display","block");
                    $("#cplb_nav1").css("display","none");
                    $("#cplb_nav2").css("display","none");
                    $("#cplb_tab2").css("background","#EAF1F7");
                    $("#cplb_tab2").css("border-top","0");
                    $("#cplb_tab2").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab2").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab1").css("background","#EAF1F7");
                    $("#cplb_tab1").css("border-right","2px solid #F3BE18");
                    $("#cplb_tab1").css("border-bottom","1px dotted #96A6BD");
                    $("#cplb_tab1").css("border-top","0");
                });

                $("#cplb_eav").mouseover(function(){
                    $("#cplb_big").css("display","block");
                });
                $("#cplb_eav").mouseout(function(){
                    $("#cplb_big").css("display","none");
                });
                $("#cplb_big").mouseover(function(){
                    $("#cplb_big").css("display","block");
                });
                $("#cplb_big").mouseout(function(){
                    $("#cplb_big").css("display","none");
                });
            });
        </script>
        <script type="text/javascript">
            function nav5(id){
                if(document.getElementById(id).innerHTML=="所有(清空条件)"){
                    document.getElementById('text5').innerHTML= "";
                    document.getElementById('knowledge.productName').value= "";
          
                    document.getElementById('knowledge.product').value=-1;
                }
                else{
                    document.getElementById('text5').innerHTML= document.getElementById(id).innerHTML
                    document.getElementById('knowledge.productName').value= document.getElementById(id).innerHTML;
          
                    document.getElementById('knowledge.product').value=id;
                }
              
                $("#cplb_big").css("display","none");
            };
            
            
            function check()
            {  
                var knowledgeArea=   document.getElementById('input_nav1').value;
             
                var contentType= document.getElementById('input_nav2').value;
              
                var institution = document.getElementById("input_nav3").value ;
                
                var countryname= document.getElementById('text').innerHTML;
               
             
                var producetname=  document.getElementById('text5').innerHTML;
               
              
                document.getElementById("knowledge.knowledgeAreaName").value=knowledgeArea;
               
                document.getElementById("knowledge.contentTypeName").value=contentType;
                      
                document.getElementById("knowledge.institutionName").value=institution;
                //  alert("productname ");             
                document.getElementById("knowledge.countryName").value=countryname;
                //   alert("groupname ");
                document.getElementById("knowledge.productName").value=producetname;
                
                document.form.submit();
            }
        
            
        </script>
        <style>
            td{ line-height:24px}
        </style>
    </head>
    <body>
        <a name="top"></a>
        <div class="page">
            <!--网站头部开始-->
            <s:include value="showtop.jsp"/>
            <s:form action="findlist" namespace="/knowledge" method="post" theme="simple" id="form">
                <s:hidden id="page" name="page"></s:hidden>
                <s:hidden id="pageSize" name="pageSize"></s:hidden>
                <s:hidden id="knowledge.knowledgeAreaName" name="knowledge.knowledgeAreaName"></s:hidden>
                <s:hidden id="knowledge.institutionName" name="knowledge.institutionName"></s:hidden>
                <s:hidden id="knowledge.contentTypeName" name="knowledge.contentTypeName"></s:hidden>
                <s:hidden id="knowledge.countryName" name="knowledge.countryName"></s:hidden>
                <s:hidden id="knowledge.productName" name="knowledge.productName"></s:hidden>
                <s:hidden id="knowledge.knowledgeArea" name="knowledge.knowledgeArea"></s:hidden>
                <s:hidden id="knowledge.institution" name="knowledge.institution" ></s:hidden>
                <s:hidden id="knowledge.contentType" name="knowledge.contentType" ></s:hidden>
                <s:hidden id="knowledge.country" name="knowledge.country"></s:hidden>
                <s:hidden id="knowledge.product" name="knowledge.product"></s:hidden>
            </s:form>
            <!--首页开始-->
            <div class="cont">
                <div class="lb_select" style="padding-left:10px; width:991px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="9%" style="text-align:center">知识领域：</td>
                            <td  width="9%" style="position:relative;">
                                <div style="background:#ffffff;height:24px;float:left"><input style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand" id="input_nav1" value="${knowledge.knowledgeAreaName}"/></div>
                                <table width="400" id="table_nav1" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:25px;_top:25px;left:0">
                                    <tr>

                                        <td style="text-align:center"><a href="#" id="ka" onClick="nav1('ka')">所有(清空条件)</a></td>
                                    </tr>
                                    <s:iterator value="kalist" var="ka" status="u" >
                                        <s:if test="#u.count % 3==0">
                                            <tr>
                                            </s:if>
                                            <td style="text-align:center"><a href="#" id="k${ka.id}" onClick="nav1('k${ka.id}')">${ka.name}</a></td>

                                            <s:if test="#u.count % 3==0">
                                            </tr>
                                        </s:if>

                                    </s:iterator>

                                </table>

                            </td>
                            <td  width="9%" style="text-align:center">内容分类：</td>
                            <td  width="9%" style=" position:relative">
                                <div style="background:#ffffff;height:24px;float:left"><input id="input_nav2" value="${knowledge.contentTypeName}" style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand"/></div>
                                <table width="400" id="table_nav2" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:25px;_top:25px;left:0">
                                    <tr>

                                        <td style="text-align:center"><a href="#" id="c" onClick="nav2('c')">所有(清空条件)</a></td>


                                    </tr>
                                    <s:iterator value="ctlist" var="ka" status="u" >
                                        <s:if test="#u.count % 3==0">
                                            <tr>
                                            </s:if>
                                            <td style="text-align:center"><a href="#" id="c${ka.id}" onClick="nav2('c${ka.id}')">${ka.name}</a></td>

                                            <s:if test="#u.count % 3==0">
                                            </tr>
                                        </s:if>

                                    </s:iterator>



                                </table>
                            </td>
                            <td  width="9%" style="text-align:center">主导机构：</td>
                            <td  width="9%" style="position:relative">
                                <div style="background:#ffffff;height:24px;float:left"><input id="input_nav3" value="${knowledge.institutionName}" style="width:86px;background:url(../images/jiansuo_bg.jpg) no-repeat right;padding:0;cursor:hand"/></div>
                                <table width="400" id="table_nav3" border="0" cellspacing="0" cellpadding="0" style="border:3px solid #AAADA8; display:none; background:#ffffff;position:absolute;top:25px;_top:25px;left:0">

                                    <tr>

                                        <td style="text-align:center"><a href="#" id="i" onClick="nav3('i')">所有(清空条件)</a></td>
                                    </tr>
                                    <s:iterator value="ilist" var="ka" status="u" >
                                        <s:if test="(#u.count+3) % 4==0">
                                            <tr>
                                            </s:if>
                                            <td style="text-align:center"><a href="#" id="i${ka.id}" onClick="nav3('i${ka.id}')">${ka.name}</a></td>

                                            <s:if test="(#u.count+1) % 4==0||#u.last">
                                            </tr>
                                        </s:if>

                                    </s:iterator>



                                </table>
                            </td>
                            <td  width="9%" style="text-align:center">采购国：</td>
                            <td  width="9%" style="position:relative"><!--国家开始-->
                                <div class="suckerdiv">
                                    <ul id="suckertree">
                                        <li class="suckerdiv_li"><a href="#" id="text" style=" padding-left:5px;border:1px solid #cccccc;"><s:property value="knowledge.countryName"/></a>
                                            <ul class="suckertree_ul" style=";z-index:0">
                                                <li class="suckertree_ul_li" style="z-index:9999"><a href="#" style="z-index:9999;width:398px;" id="font9999" onClick="nav('font9999')">所有(清空条件)</a>
                                                    <s:iterator value="clist" var="c" status="u">
                                                        <li class="suckertree_ul_li" style="z-index:-${u.index}"><a href="#" style="z-index:-${u.index}" id="c${c.id}" onClick="nav('c${c.id}')">${c.name}</a>
                                                            <s:if test="#c.list!=null">
                                                                <ul>
                                                                    <s:iterator value="#c.list" var="c2" status="uu">
                                                                        <li><a href="#" id="c${c2.id}" onClick="nav('c${c2.id}')">${c2.name}</a></li>
                                                                    </s:iterator>


                                                                </ul> 
                                                            </s:if>
                                                        </li>
                                                    </s:iterator>

                                            </ul>
                                        </li>
                                    </ul>
                                </div>
                                <!--国家结束-->
                            </td>
                            <td  width="9%" style="text-align:center">产品：</td>
                            <td  width="9%" style="position:relative">
                                <div style="float:left; width:80px; height:24px; border:1px solid #cccccc; background:#ffffff" id="cplb_eav"><span style=" float:left;width:70px; height:24px; background:url(../images/jiansuo_bg.jpg) no-repeat right; padding:0 7px 0 3px;cursor:hand;" id="text5">${knowledge.productName}</span></div>
                                <table width="1003" style="border:1px solid #ADCAF2;display:none; position:absolute; background:#ffffff;top:26px;left:-810px;" cellpadding="0" cellspacing="0" id="cplb_big">
                                    <tr>
                                        <td valign="top" style="border-right:1px solid #F2BC14;"><table border="0" cellpadding="0" cellspacing="0" style="width:35px; margin-right:-6px">
                                                <tr>
                                                    <td height="80px" class="cplb_tab_link" id="cplb_tab999">所有</td>
                                                </tr>
                                                <s:iterator value="proList" var="p" status="u">
                                                    <tr>
                                                        <td height="80px" class="cplb_tab_link" id="cplb_tab${u.index+1}">${p.name}</td>
                                                    </tr>
                                                </s:iterator>

                                            </table>
                                        </td>
                                        <td width="965" valign="top" class="cplb_td"><!--工业品-->
                                            <table width="100%" border="0" cellspacing="15" cellpadding="0" class="cplb_table" id="cplb_nav999">
                                                <tr>
                                                    <td width="33%">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style=" background:url(images/cplb_bg.jpg) repeat-x top">
                                                            <tr>
                                                                <td style="padding:0 5px 0 5px;"><strong><a href="#" id="999" onClick="nav5(999)">所有(清空条件)</a></strong></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <s:iterator value="proList" var="p" status="u">

                                                <s:if test="#u.first" >
                                                    <table width="100%" border="0" cellspacing="15" cellpadding="0" class="cplb_table" id="cplb_nav${u.index+1}">
                                                    </s:if>
                                                    <s:else>
                                                        <table width="100%" border="0" cellspacing="15" cellpadding="0" class="cplb_table" id="cplb_nav${u.index+1}" style="display:none">
                                                        </s:else>
                                                        <s:iterator value="#p.produceObjlist" var="p1" status="p3">
                                                            <tr> 
                                                                <td width="33%">
                                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" style=" background:url(images/cplb_bg.jpg) repeat-x top">
                                                                        <tr>
                                                                            <td style="padding:0 5px 0 5px;"><strong><a href="#" id="${p1.id}" onClick="nav5('${p1.id}')">${p1.name}</a></strong></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td style="padding:0 5px 0 5px;">
                                                                                <s:iterator value="#p1.produceObjlist" var="p2" status="p2sta">
                                                                                    <a href="#" id="${p2.id}" onClick="nav5('${p2.id}')">${p2.name}</a><s:if test="#p2sta.last"> </s:if>
                                                                                    <s:else>|</s:else> 
                                                                                </s:iterator>
                                                                            </td>  
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>  </s:iterator>
                                                        </table>

                                                </s:iterator>

                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td onClick="check();"><img src="${pageContext.request.contextPath}/images/lb_select_anniu.jpg"/></td>
                        </tr>
                    </table>
                </div>
                <div class="lb_select_inf" style="margin-top:5px;width:985px"> <span>共有<font style="color:#E9503E; font-weight:bold">${pageBean.allRow}</font>个内容</span> </div>
                <div class="lb_cont">
                    <s:iterator value="pageBean.list" var="dc" status="u">
                        <div class="lb_cont_1">
                            <div class="lb_cont_1_left">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:10px">
                                    <tr><td colspan="2" style="color:#005AA8; font-size:14px">${dc.name}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style=" color:#999999">[知识领域：${dc.knowledgeAreaName}]</td>
                                    </tr>
                                    <tr><td width="20%">内容分类：${dc.contentTypeName}</td><td><font>主导机构：${dc.institutionName}</font></td></tr>
                                    <tr><td style=" color:#FF9900">采购国：${dc.countryName}</td><td style=" color:#FF9900">产品：${dc.productName}</td></tr>
                                </table>
                            </div>
                            <div class="lb_cont_1_right"><a href="${pageContext.request.contextPath}/knowledge/showknowledge.action?knowledge.id=${dc.id}"  target="_blank"><img src="${pageContext.request.contextPath}/images/lb_ent.jpg"/></a></div>
                        </div>
                    </s:iterator>

                </div>
                <s:include value="/common/page.jsp"/>
            </div>
            <!--首页结束-->
            <!--网站底部开始-->
            <s:include value="../bottom.jsp"/>
            <!--网站底部结束-->
        </div>

        <!--首页结束-->
        <a style="display:block; width:1003px; color:#ffffff" name="bottom">11111</a>
        </div>
        <!-- /header -->
        <div class="w960"> </div>
        <!-- /flink -->
        <!-- //底部模板 -->
        <div id="js">
            <script type="text/javascript" src="${pageContext.request.contextPath}/knowledge/common.js"></script>
            <script type="text/javascript" src="${pageContext.request.contextPath}/knowledge/scroll.js"></script>
            <div id="go_top_bottom"><a href="javascript:void(0);" id="go_top" style="display: block;">去顶部</a> <a href="javascript:void(0);" id="go_bottom">去底部</a></div>
        </div>
        <div id="menuContent" class="menuContent" style="display:none; position: absolute;">
            <ul id="treeDemo" class="ztree" style="margin-top:0; width:160px;"></ul>
        </div>
        <!-- /footer -->
    </body>
</html>
